package junit.controller;
 
import name.jiaosha.air.company.controller.CarInfoController;
import name.jiaosha.air.company.domain.CarInfo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCarInfoController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });

		CarInfoController lc = (CarInfoController) context
				.getBean("carInfoController");

		try {
			lc.getMyCarInfoList(null,null);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
//		CarInfo carInfo =new CarInfo();
//		carInfo.setCarCode("江Ｄ");
//		carInfo.setName("标志307");
//		lc.create(carInfo);

	}

}
